package www.ym.com.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Dish implements Serializable {
    public static final long serialVersion = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 菜品名称
     */
    private String name;


    /**
     * 菜品分类id
     */
    private Long categoryId;

    /**
     * image
     */
    private String image;

    /**
     * 价格
     */
    private Integer price;

    /**
     * 启停售卖状态  0 :停售 1:起售
     */
    private Integer status;

    /**
     * 菜品描述
     */
    private String description;

    @TableField(fill = FieldFill.INSERT)
    public LocalDateTime createTime;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    public LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    public LocalDateTime createUser;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    public LocalDateTime updateUser;
}
